<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>D站</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <link rel="icon" th:href="@{/pagesResource/img/icon.png}">
    <link rel="stylesheet" type="text/css" th:href="@{/pagesResource/css/animate.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/pagesResource/css/bootstrap.min.css}">
<!--    <link rel="stylesheet" type="text/css" th:href="@{/pagesResource/css/fontello.css}">-->
<!--    <link rel="stylesheet" type="text/css" th:href="@{/pagesResource/css/fontello-codes.css}">-->
<!--    <link rel="stylesheet" type="text/css" th:href="@{/pagesResource/css/thumbs-embedded.css}">-->
    <link rel="stylesheet" type="text/css" th:href="@{/pagesResource/css/iconfont.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/pagesResource/css/style.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/pagesResource/css/responsive.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/pagesResource/css/color.css}">

    <link rel="stylesheet" type="text/css" th:href="@{/boostrapFileInputResources/css/fileinput.min.css}">
    <style>
        @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);

        body{
            /*background: url('https://unsplash.imgix.net/44/9s1lvXLlSbCX5l3ZaYWP_hdr-1.jpg?q=75&fm=jpg&s=fd39ab9358b1aec7746ee67168ccf268') no-repeat center center fixed;*/
            -webkit-background-size: cover;
            -moz-background-size: cover;
            -o-background-size: cover;
            background-size: cover;

        }



        .newUl{
            margin: 2em auto;
            width: 150px;
            background: #34495e;
            list-style: none;
            padding: 0;
            font-family: 'Open Sans', sans-serif;
        }

        .newUl>.newLi{
            color: #fff;
            background: #1a1834;
            padding: 1em;
            border-bottom: 0.5em solid #2c3e50;
            margin-top: 0.25em;
            border-left: 0.5em groove #e74c3c;
            cursor: pointer;
            transition: 0.4s all;
            border-top-left-radius: 5px;
        }

        i{
            padding-right: 0.5em;
        }
        .active{
            border-left: 0.5em groove #1abc9c;
        }

        .newLi:hover{
            background: #2c3e50;
            border-left: 0.5em groove #3498db;
        }


        .unread{
            float: right;
            background: #e74c3c;
            width: 2em;
            border-radius: 50%;
            font-size: 0.75em;
            line-height: 2;
            text-align: center;
            animation: notificationpulse 0.5s infinite;
            -webkit-animation: notificationpulse 0.5s infinite;
            -moz-animation: notificationpulse 0.5s infinite;
        }
        /*the animations */
        @keyframes notificationpulse {
            0% {
                box-shadow: 0 0 0 0.00em #c0392b;
            }
            25% {
                box-shadow: 0 0 0 0.25em #c0392b;
            }
            50% {
                box-shadow: 0 0 0 0.50em #c0392b;
            }
            75% {
                box-shadow: 0 0 0 0.25em #c0392b;
            }
            100% {
                box-shadow: 0 0 0 0.15em #c0392b;
            }
        }
        @-webkit-keyframes notificationpulse {
            0% {
                box-shadow: 0 0 0 0.00em #c0392b;
            }
            25% {
                box-shadow: 0 0 0 0.25em #c0392b;
            }
            50% {
                box-shadow: 0 0 0 0.50em #c0392b;
            }
            75% {
                box-shadow: 0 0 0 0.25em #c0392b;
            }
            100% {
                box-shadow: 0 0 0 0.15em #c0392b;
            }
        }

        @-moz-keyframes notificationpulse {
            0% {
                box-shadow: 0 0 0 0.00em #c0392b;
            }
            25% {
                box-shadow: 0 0 0 0.25em #c0392b;
            }
            50% {
                box-shadow: 0 0 0 0.50em #c0392b;
            }
            75% {
                box-shadow: 0 0 0 0.25em #c0392b;
            }
            100% {
                box-shadow: 0 0 0 0.15em #c0392b;
            }
        }

    </style>
</head>
<body>
<div class="wrapper">
    <div th:include="main/simpleHeader :: header"></div>
</div>
<br>
<div class="container">
    <div class="col-sm-1"></div>
    <div class="col-sm-2">
        <ul class="newUl">
            <li class="active newLi"><i class="fa fa-home fa-lg"></i><a th:href="@{/message/commentMessage?page=1}">评论消息</a></li>
            <li class="newLi"><i class="fa fa-envelope fa-lg"></i><a th:href="@{/message/dynamicMessage?page=1}"> 动态消息</a></li>
            <li class="newLi"><i class="fa fa-user fa-lg"></i><a th:href="@{/message/likedMessage?page=1}"> 点赞消息</a></li>
            <li class="newLi"><i class="fa fa-cogs fa-lg"></i> <a th:href="@{/message/coinMessage?page=1}">投币消息</a></li>
            <li class="newLi"><i class="fa fa-power-off fa-lg"></i><a th:href="@{/message/rechargeMessage?page=1}"> 充值消息</a></li>
        </ul>
    </div>

    <div class="col-sm-8" >
        <table id="table"  class="table table-bordered table-striped table-hover" >
            <thead>
            <tr>
                <th>所属消息ID</th>
                <th>消息类型</th>
                <th>发生时间</th>
                <th>跳转</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="data : ${pageData.records}">
                <td th:text="${data.messageId}"></td>
                <td th:text="${data.messageType}"></td>
                <td th:text="${data.createDate}"></td>
                <td >
                    <a class="btn btn-info btn-xs" th:href="@{${data.linkURL}}">查看</a>
                </td>
                <!--<td>-->
                    <!--<a class="btn btn-info btn-xs" th:onclick="'displayVideoById('+${videoInfo.videoId}+')'">查看视频</a> &nbsp;  &nbsp;&nbsp;-->
                    <!--<a class="btn btn-warning btn-xs" th:onclick="">修改</a> &nbsp;  &nbsp;&nbsp;-->
                    <!--<a class="btn btn-danger btn-xs" th:onclick="'deleteVideoInfoById('+${videoInfo.videoId}+')'">删除</a> &nbsp;  &nbsp;&nbsp;-->
                <!--</td>-->
            </tr>
            </tbody>
        </table>
        <div >
            <div class="center " style="padding-left: 45%;!important;">
                <a th:href="@{${currentSearch}(page=${pageData.current}-1)}"
                   th:class="${pageData.current == 1}? 'disabled btn btn-primary btn-xs':'btn btn-primary btn-xs'"
                    >上一页</a>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;
                <a th:href="@{${currentSearch}(page=${pageData.current}+1)}"
                   th:class="${pageData.current == pageData.pages?'disabled btn btn-primary btn-xs':'btn btn-primary btn-xs'}" >下一页</a>
            </div>
        </div>
        <div>
            <div class="center " style="padding-left: 45%;!important;">
                当前第 [[${pageData.current}]]页,共 [[${pageData.pages}]] 页.一共 [[${pageData.total}]] 条记录
            </div>
        </div>
    </div>
    </div>

</div>

<script th:src="@{/boostrapTemplatResources/js/html5shiv.js}"></script>
<script th:src="@{/boostrapTemplatResources/js/respond.min.js}"></script>

<!-- jQuery -->
<script th:src="@{/boostrapTemplatResources/vendor/jquery/jquery.min.js}"></script>

<!-- Bootstrap Core JavaScript -->
<script th:src="@{/boostrapTemplatResources/vendor/bootstrap/js/bootstrap.min.js}"></script>

<!-- Metis Menu Plugin JavaScript -->
<script th:src="@{/boostrapTemplatResources/vendor/metisMenu/metisMenu.min.js}"></script>

<!-- Morris Charts JavaScript -->
<script th:src="@{/boostrapTemplatResources/vendor/raphael/raphael.min.js}"></script>
<script th:src="@{/boostrapTemplatResources/vendor/morrisjs/morris.min.js}"></script>
<script th:src="@{/boostrapTemplatResources/data/morris-data.js}"></script>

<!-- Custom Theme JavaScript -->
<script th:src="@{/boostrapTemplatResources/dist/js/sb-admin-2.js}"></script>
<script th:src="@{/pagesResource/js/script.js}"></script>
<script type="text/javascript">


</script>
</body>
</html>